package com.jwaoo.mobile.view.account.update;

import android.os.Bundle;
import android.view.View;

import com.dx.as.UI;
import com.jwaoo.mobile.R;

/**
 * Created by jwaoo on 2017/12/20.
 */

public class UpdateInfoActivity extends UI{
    public static final int SIGNATURE = 0;
    public static final int LOCATION = 1;
    public static final int NICKNAME = 2;
    public static final String VIEW_TYPE = "view_type";
    private int type = 0;
    @Override
    protected void onActivityCreate(Bundle savedInstanceState) {
        setContentView(R.layout.activity_update_info);
        type = getIntent().getIntExtra(VIEW_TYPE,0);
        initView();
    }

    private void initView(){
        switch (type){
            case SIGNATURE:
                findView(R.id.update_signature).setVisibility(View.VISIBLE);
                break;
            case LOCATION:
                findView(R.id.update_location).setVisibility(View.VISIBLE);
                break;
            case NICKNAME:
                findView(R.id.update_nickname).setVisibility(View.VISIBLE);
                break;
        }
    }


}
